import React from 'react';
import ReactDOM from 'react-dom/client';
import 'src/index.css';
import reportWebVitals from 'src/reportWebVitals';

import { ConfigProvider } from 'antd';
import { Typography } from 'antd';
import zhCN from 'antd/locale/zh_CN';
import { StyleProvider, legacyLogicalPropertiesTransformer } from '@ant-design/cssinjs';

const { Paragraph, Link } = Typography;

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <React.StrictMode>
    <ConfigProvider locale={zhCN}>
      <StyleProvider hashPriority="high" transformers={[legacyLogicalPropertiesTransformer]}>
        <Paragraph>
          <ul>
            <li>
              <Link href="report_admin.html">报表模板编辑</Link>
            </li>
            <li>
              <Link href="report.html">报表工具</Link>
            </li>
            <li>
              <Link href="curve.html">曲线图</Link>
            </li>
            <li>
              <Link href="hisevt.html">历史告警</Link>
            </li>
          </ul>
        </Paragraph>
      </StyleProvider>
    </ConfigProvider >
  </React.StrictMode >
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
